package com.fakeDYChat.common.user.service;

import com.fakeDYChat.common.user.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fakeDYChat.common.user.domain.enums.RoleEnum;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author Tang
 * @since 2024-01-12
 */
public interface IRoleService {
    /**
     * 判断用户是否有对应权限
     *
     * @param uid      用户id
     * @param roleEnum 权限标识
     * @return boolean
     * @author Tang
     * @date 2024/1/12 19:32
     **/
    boolean hasPower(Long uid, RoleEnum roleEnum);
}
